package com.micro.modual.entity;

import javax.persistence.Id;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * <h1>角色菜单关联表表 micro_system_resource_auth</h1>
 *
 * @author levelcoder
 * @date 2020-08-04 00:11:10
 */
@ApiModel(description = "角色菜单关联表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "micro_system_resource_auth")
public class SystemResourceAuth implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @ApiModelProperty(value = "主键编号")
    private Long id;


    /**
     * 角色编号
     */
    @ApiModelProperty(value = "角色编号")
    private String roleCode;


    /**
     * 资源编码
     */
    @ApiModelProperty(value = "资源编码")
    private String resourceCode;


    /**
     * 授权编号
     */
    @ApiModelProperty(value = "授权编号")
    private String authCode;


    /**
     * 授权类型
     */
    @ApiModelProperty(value = "授权类型")
    private String authType;


    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;


    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;


    /**
     * 归属父类编号:仅元素时存在,存储为菜单编号
     */
    @ApiModelProperty(value = "归属父类编号:仅元素时存在,存储为菜单编号")
    private String parentCode;

}
